home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
doodle_d.swf
/
scripts
/
frame_48
/
DoAction_4.as
< prev
next >
Wrap
Text File
|
2013-04-24
|
954b
|
41 lines
function spawn()
{
if(eNumb < 5)
{
eAmount++;
eNumb++;
depth = _root.getNextHighestDepth();
_root.attachMovie("en10","e" + eNumb,depth);
e = eval("e" + eNumb);
e._x = Math.random() * 600 + 20;
e._y = Math.random() * 40 + 640;
e.che = eAmount;
}
if(eNumb2 < 7)
{
eAmount++;
eNumb2++;
depth = _root.getNextHighestDepth();
_root.attachMovie("en9","e" + (eNumb2 + 5),depth);
e = eval("e" + (eNumb2 + 5));
e._x = Math.random() * 640;
e._y = 640;
e.che = eAmount;
}
if(eNumb3 < 3)
{
eAmount++;
eNumb3++;
depth = _root.getNextHighestDepth();
_root.attachMovie("en8","e" + (eNumb3 + 12),depth);
e = eval("e" + (eNumb3 + 12));
e._x = Math.random() * 640;
e._y = 880;
e.che = eAmount;
}
}
var eNumb = 0;
var eNumb2 = 0;
var eNumb3 = 0;
var eAmount = 0;